This example shows how to resize the SfPdfViewer within its container, at the run time. Here, the SfPdfViewer is rendered inside a Splitter component. When you resize the Splitter, the SfPdfViewer will stretch its size accordingly by using the UpdateViewerContainerAsync() method.
Documentation: https://help.syncfusion.com/document-processing/pdf/pdf-viewer/blazor/how-to/stretch-the-sfpdfviewer-size-to-its-container
To run this application, you need Visual Studio 2019 or later versions.
To debug while running the application, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.